package day0619;

import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        //String[]：大数组中存储的是String小数组
        //一、二维数组的写法：
        String[]  []  students={
                                {"张三1","张三2","张三3"},
                                {"李四1","李四1","李四1"},
                                {"王五1","王五2","王五3"},
                                {"赵六1","赵六2","赵六3"}
                            };
        //二、修改元素/存储元素
        students[0][1]="zhangSan2";

        //三、打印元素
        /*System.out.println(Arrays.toString(students[0]));
        System.out.println(Arrays.toString(students[1]));
        System.out.println(Arrays.toString(students[2]));*/
        for(int i=0 ;i <students.length ;i++){
            System.out.println(Arrays.toString(students[i]));
        }

        for(int i=0 ;i <students.length ;i++){
            for(int j=0; j<3; j++){
                System.out.println(students[i][j]);
            }
        }


    }
}